#include "bxdf.h"

namespace tls{
  bxdf::~bxdf(){}

  //---lambertian---
  vec3 lambertian::f(const isect& hit)const{
    return r / pi;
  }
  lambertian::~lambertian(){}

  void* create_lambertian(std::FILE* file){
    vec3 v;
    std::fscanf(file,"%lf%lf%lf",&v.x,&v.y,&v.z);
    return new lambertian(v);
  }

}//namespace tls

